<include file='Public/header' />
<script>
	 	var istrue=false;
		function test(){
			var s1=document.getElementById("pwd").value;
			var s2=document.getElementById("rpwd").value;
			var s3 =document.getElementById("clogodiv");
			if(s1!=s2){
			s3.innerHTML="错误";
			alert("两次密码输入不一致！");
			s3.style.color="red";
			istrue=false;
			}else if(s1!="" && s1==s2){
			 s3.style.color="blue";
			  s3.innerHTML="正确";
			  istrue=true;
			}
		}
	</script>
	
	
<form method="POST"  action="{:U('modpwd')}" role="form">
	<table class="table">
		<tr>
		<th>原密码</th>
		<td> <input type="password" name="oldpass" class="form-control" id="name" 
			 placeholder="原密码">
		</td>
		</tr>
		<tr>
		<th>密码</th>
		<td> <input type="password" id="pwd" name="newpass" class="form-control" id="name" 
			 placeholder="新密码">
		</td>
		</tr>
		<tr>
		<th>重复密码</th>
		<td> <input type="password" name="repass" id="rpwd" class="form-control" required="required" placeholder="password"
					onblur="test()" required oninvalid="setCustomValidity('请再次填写密码')"
					oninput="setCustomValidity('')">
		<td>
		<p id="clogodiv">						
		</p>
		</td>
		</tr>
	</table>
	<input type="submit" class="btn btn-primary" value="提交">
</form>
<include file='Public/footer'/>
